<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>grid布局</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <!-- grid布局中，外层div叫做容器 -->
    <div class="container">
        <!-- 内层div叫做项目，Grid 布局只对项目生效 -->
        <div class="item item-1"><p>1</p></div>
        <div class="item item-2"><p>2</p></div>
        <div class="item"><p>3</p></div>
        <div class="item"><p>4</p></div>
        <div class="item"><p>5</p></div>
        <div class="item"><p>6</p></div>
        <div class="item"><p>7</p></div>
        <div class="item"><p>8</p></div>
        <div class="item"><p>9</p></div>
    </div>
    <p>test</p>
</body>
</html>